<?php
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$input = $app->input;
if($input->get("option") != "com_ketnoi" && $input->get("view") != "login")
{
	header("Location:index.php");
}


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
	<head>
		<meta charset="utf-8">
		
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

		<link href="templates/<?php echo $this->template; ?>/assets/css/bootstrap.css" rel="stylesheet" >
		<link href="templates/<?php echo $this->template; ?>/assets/css/theme.css" rel="stylesheet" >
		<link href="templates/<?php echo $this->template; ?>/assets/css/font-awesome.min.css" rel="stylesheet">
		<link href="templates/<?php echo $this->template; ?>/assets/css/alertify.css" rel="stylesheet">
		
		<link href="templates/<?php echo $this->template; ?>/assets/css/chosen.css" rel="stylesheet">
		<link href="templates/<?php echo $this->template; ?>/assets/font/opensans.css" rel="stylesheet" type="text/css">
		<link rel="Favicon Icon" href="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/favicon.ico">
		<link href="templates/<?php echo $this->template; ?>/assets/css/bootstrap-modal.css" rel="stylesheet">
		<link href="templates/<?php echo $this->template; ?>/assets/css/default.css" rel="stylesheet">
		
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
		<script>window.jQuery || document.write('<script src="templates/<?php echo $this->template; ?>/assets/js/jquery-1.8.2.min.js"><\/script>')</script>
		
		<jdoc:include type="head" />
		
		<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
		  <script src="templates/<?php echo $this->template; ?>/assets/js/html5.js"></script>
		<![endif]-->
		
	</head>
	<body >
		<div id="wrap">
			<div class="container-fluid">
				<!-- /Side menu -->
				<div class="main_container fixMarginLogin" id="main_container">
					<jdoc:include type="component" />
				</div>
			</div>
		</div>  
		
		<?php //include 'preloader_JS.html' ?>
		
		<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
	    <script>
	        if (!$('body').popover) {
	            document.write('<script src="templates/<?php echo $this->template; ?>/assets/js/bootstrap.js"><\/script>')
	        }
	    </script>
	    
	    <script src="//cdn.kendostatic.com/2012.3.1315/js/kendo.all.min.js"></script>
	    <script>
	        if (typeof (kendo) == "undefined")
	        {
	            document.write('<script src="templates/<?php echo $this->template; ?>/assets/kendoui/js/kendo.all.min.js"><\/script>')
	        }
	    </script>
	    
	    <script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.11.0/jquery.validate.min.js"></script>
	    <script>
	        if (typeof ($.validator) == "undefined")
	        {
	            document.write('<script src="templates/<?php echo $this->template; ?>/assets/js/jquery.validate.1.11.min.js"><\/script>')
	        }
	    </script>
	    
	    <script type="text/javascript" src="templates/<?php echo $this->template; ?>/assets/js/jquery.alertify.min.js"></script>

		<script type="text/javascript" src="templates/<?php echo $this->template; ?>/assets/js/jquery.form.js"></script>
		<script type="text/javascript" src="templates/<?php echo $this->template; ?>/assets/js/bootstrap-modal.js"></script>
		<script type="text/javascript" src="templates/<?php echo $this->template; ?>/assets/js/bootstrap-modalmanager.js"></script>

		<script type="text/javascript" src="templates/<?php echo $this->template; ?>/assets/js/default.js"></script>

		<script type="text/javascript" src="templates/<?php echo $this->template; ?>/assets/component/js/login.js"></script>
	</body>
</html>